package com.atguigu.common.constant;

import java.time.Duration;
import java.util.concurrent.TimeUnit;

public interface CartConstant {
    String CART_BASE_DOMAIN_URL = "http://cart.gulimall.com";
    String REDIRECT_CART_BASE_DOMAIN_URL = "redirect:http://cart.gulimall.com";
    String TEMP_USER_COOKIE_NAME = "user-key";
    String CART_CACHE_PREFIX = "gulimall:cart:";
    Integer TEMP_USER_COOKIE_TIMEOUT = Math.toIntExact(TimeUnit.DAYS.toSeconds(30));
}
